<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var min = 0;
        function getMin() {
            for (var i = 0; i < arguments.length; i++) {
                if (min > arguments[i]) {
                    min = arguments[i];
                }
            }
            document.write(min + "<br>");
        }
        getMin(1, 2, 23, -3, 15, 99, 888, 33, 77);
    </script>
</body>

</html>